package com.pai4j.common.enums;

import lombok.Getter;

@Getter
public enum PermissionCodeEnum {
    
    ADD(1, "添加"),
    
    DELETE(2, "删除"),
    
    UPDATE(3, "修改"),
    
    READ(4, "查看"),
    
    DISABLE_USER(100, "禁用用户"),
    
    ASSIGN_ROLE(101, "分配角色"),
    
    PUBLISH_ARTICLE(200, "发布文章"),
    
    DELETE_COMMENT(201, "删除评论"),
    
    AUDIT_CONTENT(202, "审核内容"),
    
    CREATE_ORDER(300, "创建订单"),
    
    CANCEL_ORDER(301, "取消订单"),
    
    REFUND_ORDER(302, "退款"),
    
    EXPORT_ORDER_DATA(303, "导出订单数据"),
    
    IMPORT_DATA(400, "导入数据"),
    
    EXPORT_DATA(401, "导出数据"),
    
    BATCH_PROCESS(402, "批量处理"),
    
    
    ;
    
    private Integer code;
    private String name;
    
    PermissionCodeEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }
}
